$(document).ready(function(){
    $('.sym_admin_icon').hover(function(){
        $(this).addClass('ui-state-hover');
    },function(){
        $(this).removeClass('ui-state-hover');
    });
    $('.sym_admin_symbionts').sortable({
        placeholder: 'ui-state-highlight',
        update: function(){
            var sort=new Array();
            $('.sym_admin_symbionts .name').each(function(){
                sort.push($(this).html());
            });
            $.ajax({
                data:{
                    'symbiont': 'admin.db_sort',
                    'sort': sort
                },
                dataType: 'html'
            });
        }
    });
});